<%-- 
    Document   : tag
    Created on : Nov 20, 2011, 3:57:00 PM
    Author     : user
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<style type="text/css">
table.sample {
	border-width: 0px;
	border-spacing: 2px;
	border-style: outset;
	border-color: gray;
	border-collapse: collapse;
	background-color: rgb(255, 250, 250);
}
table.sample th {
	border-width: 2px;
	padding: 10px;
	border-style: solid;
	border-color: gray;
	background-color: rgb(255, 245, 238);
	-moz-border-radius: ;
}
table.sample td {
	border-width: 2px;
	padding: 10px;
	border-style: solid;
	border-color: gray;
	background-color: rgb(255, 245, 238);
	-moz-border-radius: ;
}
</style>

<f:view>
    
    <f:loadBundle basename="cityblog" var="msg"/>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Tag Page</title>
    </head>
    <body>
        <h:form id="submitForm">
            <h:messages/>
         <h:dataTable styleClass="sample" id="table1" value="#{tagbean.tags}" var="tag">
                
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="#{msg.tagId}" />
                    </f:facet>
                    <h:outputText value="#{tag.id}" />
                </h:column>
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="#{msg.tagName}" />
                    </f:facet>
                    <h:outputText value="#{tag.name}" />
                </h:column>
         </h:dataTable>
              <h:commandButton  value="#{msg.show}" action="showTag"/>
           
        </h:form>
    </body>
</html>
</f:view>